# Contributor: Prokop Randáček <prokop@rdck.dev>
# Maintainer: Prokop Randáček <prokop@rdck.dev>
pkgname=nvimpager
pkgver=0.12.0
pkgrel=0
pkgdesc="Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting"
url="https://github.com/lucc/nvimpager"
arch="noarch"
license="BSD-2-Clause"
depends="cmd:nvim cmd:tput bash"
makedepends="scdoc"
checkdepends="cmd:lua lua-busted procps-ng"
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/lucc/nvimpager/archive/refs/tags/v$pkgver.tar.gz"

check() {
	TERM=linux make test
}

package() {
	make PREFIX="/usr" DESTDIR=$pkgdir install
}

sha512sums="
a1b67aafdb73c5baa96cf0d682b1fa7ac7f39f58d6ce50f9875b1f9815dfce04921ffdd748552f07279cb9cc6b5c700c4aa43b7755952ce7993362b4c664e2de  nvimpager-0.12.0.tar.gz
"
